package com.boc.ewr.cornJob;

import com.boc.ewr.risk.service.ICacRiskService;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.dto.message.MessageDTO;
import org.jeecg.common.system.api.ISysBaseAPI;
import org.jeecg.common.system.vo.ComboModel;
import org.jeecg.common.util.DateUtils;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author : Wzz
 * @create : 2023-06- 08- 10:16
 * @desc :无头账户监控 数据生成
 */
@Slf4j
public class HeadlessCacGenJob implements Job {

    @Autowired
    private ICacRiskService cacRiskService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info(" Job Execution key：" + jobExecutionContext.getJobDetail().getKey());
        log.info(String.format(" 无头账户监控 数据生成 HeadlessCacGenJob 时间:" + DateUtils.getTimestamp()));

        cacRiskService.noneBusAcct();
    }
}
